github.com/jackc/pgx/v5/pgproto3.chunkReader.wp (field)

13 uses

	github.com/jackc/pgx/v5/pgproto3 (current package)
		chunkreader.go#L18: 	rp, wp int // buf read position and write position
		chunkreader.go#L47: 	if r.rp == r.wp {
		chunkreader.go#L53: 		r.wp = 0
		chunkreader.go#L57: 	if (r.wp - r.rp) >= n {
		chunkreader.go#L66: 		r.wp = copy((*bigBuf), (*r.buf)[r.rp:r.wp])
		chunkreader.go#L73: 	minReadCount := n - (r.wp - r.rp)
		chunkreader.go#L74: 	if (len(*r.buf) - r.wp) < minReadCount {
		chunkreader.go#L75: 		r.wp = copy((*r.buf), (*r.buf)[r.rp:r.wp])
		chunkreader.go#L80: 	readBytesCount, err := io.ReadAtLeast(r.r, (*r.buf)[r.wp:], minReadCount)
		chunkreader.go#L81: 	r.wp += readBytesCount
		frontend.go#L460: 	return f.cr.wp - f.cr.rp